<!DOCTYPE html>
<html>

<head>
    <title>{$enterprise.ent_title} - 校友企业库 - {$site_info.site_name|default=''}</title>
    <meta name="keywords" content="{$enterprise.ent_keywords},{$site_info.site_seo_keywords|default=''}" />
    <meta name="description" content="{$enterprise.ent_title}：{$enterprise.ent_summary}">
    <include file="public@head" />
</head>

<body class="bg-light">
    <include file="public@nav" />
    <php>
        $keywords = $enterprise['ent_keywords']; $tags = []; if(!empty($keywords)){ $tags = explode(',',$keywords); }
    </php>
    <section class="container my-5">
        <div class="row">
            <div class="col-2">
                <a href="{:cmf_url('schain/Enterprise/add')}" class="btn btn-block btn-primary mb-3"><i class="fa fa-address-card-o"></i> 校友企业申请入驻</a>
                <div class="card border-0 mb-3">
                    <div class="card-body">
                        <div class="text-center">
                            关注微信公众号
                            <br><span class="badge badge-info">新梅陇客栈</span>
                            <img src="/assets/dist/images/qrcode.jpg" class="img-fluid">
                        </div>
                    </div>
                </div>
                <div class="card border-0 mb-3">
                    <div class="card-body">
                        <h6>关于社区</h6>
                        <ul class="list-unstyled">
                            <li><a href="{:cmf_url('portal/Page/index',array('id'=>40))}">联系我们</a></li>
                            <li><a href="{:cmf_url('portal/Page/index',array('id'=>39))}">关于我们</a></li>
                            <li><a href="{:cmf_url('portal/Page/index',array('id'=>39))}">近期活动</a></li>
                        </ul>
                        <h6>快捷联系</h6>
                        <ul class="list-unstyled m-0">
                            <li><a href="tel:(+86) 159-2158-7537"><i class="fa fa-phone"></i> 159-2158-7537</a></li>
                            <li><a href="mailto:supu@vip.qq.com"><i class="fa  fa-envelope-o"></i> supu@vip.qq.com</a></li>
                        </ul>
                    </div>
                </div>
            </div>
            <div class="col-7">
                <div class="card border-0">
                    <div class="card-body">
                        <div class="media row">
                            <div class="col-3">
                                <empty name="enterprise.more.thumbnail">
                                    <img src="/assets/dist/images/default-thumbnail.png" alt="{$enterprise.ent_title}" class="img-fluid">
                                    <else/>
                                    <img src="{:cmf_get_image_url($enterprise.more.thumbnail)}" alt="{$enterprise.ent_title}" class="img-fluid">
                                </empty>
                            </div>
                            <div class="media-body col-9">
                                <h5 class="mt-0">{$enterprise.ent_title}</h5>
                                <div class="tags">
                                    <span class="label label-primary">{$enterprise.ent_category}</span>
                                    <foreach name="tags" item="vo">
                                        <span class="label label-warning">{$vo}</span>
                                    </foreach>
                                </div>
                                <p class="signature" title="">{$enterprise.ent_summary}</p>
                                <div class="text-secondary">
                                    <span class="published"><i class="fa  fa-calendar-plus-o"></i> {:date('Y-m-d', $enterprise.published_time)}</span>
                                    <span class="location"><i class="fa fa-map-marker"></i> {$enterprise.ent_location}</span>
                                </div>
                            </div>
                        </div>
                        <hr>
                        <h6>基本信息</h6>
                        <div class="row">
                            <div class="col-6">
                                <p><strong>企业名称：</strong>{$enterprise.ent_title|default="未填写"}</p>
                                <p><strong>企业地址：</strong>{$enterprise.ent_address|default="未填写"}</p>
                                <p><strong>企业网址：</strong>{$enterprise.ent_website|default="未填写"}</p>
                            </div>
                            <div class="col-6">
                                <p><strong>联系人：</strong>{$enterprise.ent_contacts|default="未填写"}</p>
                                <p><strong>企业电话：</strong>{$enterprise.ent_tell|default="未填写"}</p>
                                <p><strong>企业邮箱：</strong>{$enterprise.ent_email|default="未填写"}</p>
                            </div>
                        </div>
                        <hr>
                        <h6>企业简介</h6>
                        <p>{$enterprise.ent_content}</p>
                        <div class="text-center">
                            <a href="{:cmf_url('schain/Enterprise/doLike',array('id'=>$enterprise['id']))}" class="js-count-btn btn-warning btn"><i class="fa fa-thumbs-up"></i> <span class="count">{$enterprise.ent_like}</span> </a>
                        </div>
                    </div>
                </div>
            </div>
            <div class="col-3">
                <div class="sticky-top">
                    <div class="card border-0 user-card ">
                        <img class="card-img-top" src="/assets/dist/images/card_bg.jpg" alt="Card image cap">
                        <div class="card-body">
                            <div class="text-center">
                                <div style="margin-top:-60px" class="mx-auto">
                                    <empty name="$user.avatar">
                                        <a href="{:url('user/profile/avatar')}">
                                            <img src="/assets/dist/images/headicon_128.png" class="headicon rounded-circle shadow-sm" alt="{$user.user_nickname}">
                                        </a>
                                        <else/>
                                        <a href="{:url('user/profile/center')}">
                                            <img src="{:cmf_get_user_avatar_url($user.avatar)}" class="headicon rounded-circle shadow-sm" alt="{$user.user_nickname}">
                                        </a>
                                    </empty>
                                </div>
                                <h6 class="my-2">{$user.user_nickname}</h6>
                                <p class="card-text">{$user.signature|default="这家伙有点懒，什么都没留下"}</p>
                                <if condition="$user eq false">
                                    <a class="btn btn-info btn-sm" href="{:cmf_url('user/Login/index')}">立即登录</a>
                                </if>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </section>
    <include file="public@footer" />
    <include file="public@scripts" />
</body>

</html>